home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / 3card_poker.swf / scripts / DefineSprite_166 / frame_13 / DoAction.as
Text File  |  2006-01-17  |  737b  |  53 lines

  1. if(x2 < x1)
  2. {
  3.    pos1 = x2;
  4.    suit1 = z2;
  5.    pos2 = x1;
  6.    suit2 = z1;
  7. }
  8. else
  9. {
  10.    pos1 = x1;
  11.    suit1 = z1;
  12.    pos2 = x2;
  13.    suit2 = z2;
  14. }
  15. if(pos1 >= x3)
  16. {
  17.    tpos1 = x3;
  18.    tsuit1 = z3;
  19.    tpos2 = pos1;
  20.    tsuit2 = suit1;
  21.    tpos3 = pos2;
  22.    tsuit3 = suit2;
  23.    pos3 = tpos3;
  24.    pos2 = tpos2;
  25.    pos1 = tpos1;
  26.    suit3 = tsuit3;
  27.    suit2 = tsuit2;
  28.    suit1 = tsuit1;
  29.    done3 = "5";
  30. }
  31. if(done3 != "5")
  32. {
  33.    if(pos2 >= x3)
  34.    {
  35.       tpos2 = x3;
  36.       tsuit2 = z3;
  37.       tpos3 = pos2;
  38.       tsuit3 = suit2;
  39.       pos3 = tpos3;
  40.       pos2 = tpos2;
  41.       suit3 = tsuit3;
  42.       suit2 = tsuit2;
  43.    }
  44.    else
  45.    {
  46.       pos3 = x3;
  47.       suit3 = z3;
  48.    }
  49. }
  50. p1 = pos1;
  51. p2 = pos2;
  52. p3 = pos3;
  53.